CHGRP

Section: Misc. Reference Manual Pages (1 )
Index Return to Main Contents

BSD mandoc
BSD 4.2  

NAME

chgrp - change group  

SYNOPSIS

chgrp [-Rf ] group files ...  

DESCRIPTION

The chgrp utility sets the group ID of the file named by each file operand to the group ID specified by the group operand.

Options:

-R
Recursively change file group IDs. For each file operand that names a directory, chgrp changes the group of the directory and all files in the file hierarchy below it. When symbolic links are encountered, their group is changed, but they are not traversed.
-f
The force option ignores errors, except for usage errors and doesn't query about strange modes (unless user does not have proper permissions).

Operands:

group
The group can be either a group name from the group database, or a numeric group ID.
file
A pathname of a file whose group ID is to be modified.

The user invoking must belong to the specified group and be the owner of the file, or be the super-user.

The chgrp utility exits 0 on success, and >0 if an error occurs.  

FILES

/etc/group
Group ID file

 

SEE ALSO

chown(2), chown(8), group(5), passwd(5)  

STANDARDS

The chgrp function is expected to be POSIX 1003.2 compatible. This manual page is derived from the POSIX 1003.2 manual page.


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 10:13:05 GMT, January 08, 2023